<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<div th:each="item:${page.list}">

    <!--/* 私人订制 */-->
    <div class="goods_con_box" th:if="${item.type eq 2}">
        <div class="goods_con_box_title clearfix">
            <div class="time" style="margin-right: 30px;" th:text="${#dates.format(item.orderTime, 'yyyy-MM-dd HH:mm:ss')}"> </div>
            <div class="time">
                订单号：[[${item.no}]]
            </div>
            <div class="del">
                <i class="iconfont icon-del" th:attr="data-item-id=${item.id}"></i>
            </div>
        </div>

        <div class="goods_con_box_table clearfix">
            <div class="left">
                <div class="up">
                    <h4>姓名：[[${item.orderDetail.photoGrapherUser.name}]]</h4>
                    <p>昵称：[[${item.orderDetail.photoGrapherUser.nickname}]]</p>
                </div>
                <div class="down">
                    <h4>姓名：[[${item.orderDetail.scriptWriterUser.name}]]</h4>
                    <p>昵称：[[${item.orderDetail.scriptWriterUser.nickname}]]</p>
                </div>
            </div>
            <div class="center" style="padding-top: 52px;">
                <p th:if="${item.orderReceipt ne null}" cus:dict="receipt-type,${item.orderReceipt.type}"></p>
            </div>

            <div class="center_1" th:if="${item.orderReceipt eq null}">未申请</div>
            <div class="center_1" th:if="${item.orderReceipt ne null}" cus:dict="receipt-apply-status,${item.orderReceipt.status}"></div>

            <div class="right" style="padding-top: 57px;">
                <a th:if="${item.orderReceipt eq null}" th:href="@{'/personal/receipt/ready/' + ${item.id}}">申请发票</a>
                <a th:href="@{'/order/get/' + ${item.id}}">订单详情</a>
                <a th:href="@{'/personal/receipt/detail/' + ${item.id}}">发票详情</a>
            </div>
        </div>
    </div>

    <!--/* 同款 */-->
    <div class="goods_con_box goods_con_box_tk" th:if="${item.type eq 1}">
        <div class="goods_con_box_title clearfix">
            <div class="time" style="margin-right: 30px;" th:text="${#dates.format(item.orderTime, 'yyyy-MM-dd HH:mm:ss')}"></div>
            <div class="time">
                订单号：[[${item.no}]]
            </div>
            <div class="del">
                <i class="iconfont icon-del" th:attr="data-item-id=${item.id}"></i>
            </div>
        </div>
        <div class="goods_con_box_table clearfix">
            <div class="left left_tk">
                <h4 th:text="${'作品：' + item.orderDetail.sameStyle.name}"></h4>
                <p class="p_tk" th:text="${'简介：' + item.orderDetail.sameStyle.description}"></p>
            </div>
            <div class="center" style="padding-top: 26px;">
                <p th:if="${item.orderReceipt ne null}" cus:dict="receipt-type,${item.orderReceipt.type}"></p>
            </div>

            <div class="center_1" th:if="${item.orderReceipt eq null}">未申请</div>
            <div class="center_1" th:if="${item.orderReceipt ne null}" cus:dict="receipt-status,${item.orderReceipt.status}"></div>

            <div class="right" style="padding: 0;">
                <a th:if="${item.orderReceipt eq null}" th:href="@{'/personal/receipt/ready/' + ${item.id}}">申请发票</a>
                <a th:href="@{'/order/get/' + ${item.id}}">订单详情</a>
                <a th:href="@{'/personal/receipt/detail/' + ${item.id}}">发票详情</a>
            </div>
        </div>
    </div>
</div>

<!--/* 显示无内容 */-->
<div th:class="${page.list.size() ne 0 ? 'goods_con_box hidden' : 'goods_con_box'}">
    <div class="goods_con_box_null_tip">
        暂时没有订单，快去选购喜爱的短视频吧！
    </div>
</div>